'use strict';
require('./index.css')
require('page/common/nav/index.js')
require('page/common/header/index.js')
require('util/slider/index.js')
var templateBanner = require('./index.string')
var _mm = require('util/mm.js')


$(function() {
    // 渲染banner和html
    var banner = _mm.renderHtml(templateBanner)
    $('.banner-con').html(banner)
    // swiper插件
 var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        slidesPerView: 1,
        paginationClickable: true,
        spaceBetween: 30,
        loop: true,
        autoplay:2000
    });    
});



